package Yangtz.Cs.Service;

import Yangtz.Cs.DAO.BookDao;
import Yangtz.Cs.Entity.BookBean;

import java.util.ArrayList;
import java.util.List;

public class BookService {

    public boolean insert(BookBean book){
        return new BookDao().insert(book);
    }

    public ArrayList<BookBean> findAll(){
        return new BookDao().findAll();
    }

    public BookBean find(String id){
        return new BookDao().find(id);
    }

    public boolean delete(String id){
        return new BookDao().delete(id);
    }

    public boolean update(BookBean book){
        return new BookDao().update(book);
    }

    public List<BookBean> searchBook(String string){
        return new BookDao().searchBook(string);
    }

    public boolean modifyBook(BookBean book){
        return new BookDao().modifyBook(book);
    }
}
